@extends('layouts.backend')

@section('content')
    <!-- Hero -->
    <div class="bg-body-light">
        <div class="content content-full">
            <div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center">
                <h1 class="flex-sm-fill h3 my-2">
                    编辑用户
                </h1>
                <nav class="flex-sm-00-auto ml-sm-3" aria-label="breadcrumb">
                    <ol class="breadcrumb breadcrumb-alt">
                        <li class="breadcrumb-item">
                            <a class="link-fx" href="/">首页</a>
                        </li>
                        <li class="breadcrumb-item">
                            <a class="link-fx" href="/perm/user">用户管理</a>
                        </li>
                        <li class="breadcrumb-item" aria-current="page">
                            编辑
                        </li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
    <!-- END Hero -->
    <!-- Page Content -->
    <div class="content">
        <div class="block">
            <div class="block-content block-content-full">
                @include('widgets.flash')
                {!! Form::model($user, ['method' => 'PATCH','class' => 'form-horizontal', 'action' => ['Perm\UserController@update', $user->id]]) !!}

                @include('perm.user._form', ['password' => 'new_password'])

                {!! Form::close() !!}
            </div>
        </div>
    </div>
    <!-- END Page Content -->

@endsection
